package com.woniu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.entity.CollectAndTest;

import com.woniu.service.vo.TestPageVo;
import com.woniu.service.vo.TestVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author D
 * @since 2023-03-27 08:24:57
 */
public interface CollectAndTestService extends IService<CollectAndTest> {

    TestPageVo<TestVo> pageCollectByUserCode(Long userCode, Integer collectType, Integer currentPage, Integer pageSize);
    TestPageVo<TestVo> getCollect(Long userCode, Long currentPage, Long size);

    Boolean collect(Long testCode,Long userCode);

    CollectAndTest getUserOneCollect(Long userCode, Long testCode);
}
